package StudyCode.summary.aclfile;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class WritesIntegerArrayFileOutputStream {
	public static void main(String[] arguments) {
		int[] data = {711, 73, 701, 56, 517, 97, 13, 0, 12, 1, 145, 0, 1, 255, 255,
				137, 89, 82, 181, 50, 220, 103, 21, 0, 59};
		try (FileOutputStream file = new FileOutputStream("E:/Copy/1.txt")) {
			for (int aData : data) {
				file.write(aData);
			}
			file.close();
			System.out.println("整数数组写入到文件输出流成功");
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
